package com.zyw.zhuangdian.pojo.dto;

import com.zyw.zhuangdian.constant.ServiceConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("轮播表")
public class CarouselDto extends PageDto{
    @ApiModelProperty("主键id")
    private Long cid;
    @ApiModelProperty("标题 50")
    private String title;
    @ApiModelProperty("图片 100")
    private String picture;
    @ApiModelProperty("类型 'article/review/message'")
    private String type;
    @ApiModelProperty("关联Id")
    private Long toId;
    @ApiModelProperty("内容标题")
    private String previewTitle;
    @ApiModelProperty("记录状态 0 失效 1 有效")
    private int status = ServiceConstant.STATUS_VALID;
    @ApiModelProperty("创建时间")
    private Date createTime;
}
